<?php
namespace Addons\OaSystem\Model;
//use Think\Model;
use Think\Model\ViewModel;

class OaApplicationViewModel extends ViewModel{
    public $viewFields = array(
        'OaApplication'=>array('id','applyer','dept_id','type','description','apply_no','submit_date','approve_date','content','is_read','status','flow_id','step','subtype','total_money'),
        'OaDept'=>array(
            'name' => 'dept_name',
            '_on'=>'OaApplication.dept_id=OaDept.id'),
        'OaEmployee'=>array(
            'name' => 'emp_name',
            '_on' => 'OaApplication.applyer=OaEmployee.id')
    );
}
?>